<?php
/**
 * @package     Joomla.Site
 * @subpackage  mod_banners
 *
 * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

/**
 * Helper for mod_banners
 *
 * @package     Joomla.Site
 * @subpackage  mod_banners
 * @since       1.5
 */
class ModEventsHelper
{
	public static function &getList(&$params)
	{
		
		JModelLegacy::addIncludePath(JPATH_ROOT.'/components/com_events/models', 'EventsModel');
		$document	= JFactory::getDocument();
		$app		= JFactory::getApplication();
		$keywords	= explode(',', $document->getMetaData('keywords'));

		$model = JModelLegacy::getInstance('Eventos', 'EventsModel', array('ignore_request' => true));
		
		//print_r($model);
	
		$events = $model->getItems();			

		return $events;
	}
}
